# -*-coding = utf-8 -*-
# @Time : 2023/4/8 10:59
# @Author : Oliver
# @File : 03多元回归和逻辑回归.py
# @Software :PyCharm
import numpy as np
import matplotlib.pyplot as plt

# sigmoid函数
import pandas as pd

np.set_printoptions(suppress=True)
x = np.linspace(-7, 7, 200)
y = 1 / (1 + np.exp(-x))
plt.plot(x, y, 'r-', lw=3)
plt.show()

data = pd.read_csv('.\\dataset\\iris_dataset\\iris.csv')
print(data.head())
print(f'size:{data.size};shape:{data.shape}')
